<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

<script type="text/javascript" src="${pageContext.request.contextPath}/js/common/url.js"></script>

<script type="text/javascript">
	$(function() {
		//var headStatus = ${head_status};
		/* $.each($('#navigation_bar li'), function(i, o) {
			if (headStatus == "index") {
				alert("====true====");
				$(this).removeClass('vcolor');
			}
		}); */
		/* $("#navigation_bar li a").click(function() {
			alert(".......");
		    $(this).siblings('li').removeClass('vcolor');  // 删除其他兄弟元素的样式

		    $(this).addClass('vcolor');                    // 添加当前元素的样式

		}); */

		/* $("#navigation_bar li a").click(function() {
			$.each($('#navigation_bar li a'), function(i, o, v) {
				if ($(this).find("a").hasClass('vcolor')) {
					alert("====true====");
					$(this).removeClass('vcolor');
				}
			});
			$(this.a).addClass('vcolor');
		}); */
		
		/*  $("#navigation_bar li a").click(function(){
		        $(this).addClass("vcolor").parent().siblings().find("a").removeAttr("vcolor");
		    }) */

		//$("#navigation_bar li").click(function(){
			//alert("====="+$(this).children("a").addClass("vcolor"));
		    //$(this).children("a").addClass(".vcolor").parent().siblings().find("a").removeClass(".vcolor");
		//});
	});
</script>

<!--上部导航栏开始-->
<div id="header">
	<div class="heade-con">
		<div class="logo">
			<a href=""><img
				src="${pageContext.request.contextPath}/images/LOGO.png" /></a>
		</div>
		<div class="nav posa">
			<ul id="navigation_bar">
				<li><a ${head_status eq "index" ? "class=\"vcolor\"" : "class=\"\""}
					href="index.jsp">首页</a></li>
				<li><a ${head_status eq "commonweal" ? "class=\"vcolor\"" : "class=\"\""}
					href="gyzc-list.jsp">公益众筹</a></li>
				<li><a ${head_status eq "question" ? "class=\"vcolor\"" : "class=\"\""}
					href="cop.html">常见问题</a></li>
				<li><a ${head_status eq "information" ? "class=\"vcolor\"" : "class=\"\""}
					href="cop.jsp">众筹资讯</a></li>
				<li><a ${fn:split(head_status, '#')[0]  eq "publish" ? "class=\"vcolor\"" : "class=\"\""}
					href="basicInfo.jsp">发布项目</a></li>
			</ul>
		</div>
		<div class="search">
			<form action="">
				<input type="text" class="search-txt" value="" placeholder="找项目">
				<input type="submit" class="search-but" value="">
			</form>
		</div>
		<div class="index-login">
		
			<a ${logreg_flag eq "login" ? "class=\"index-login1\"" : "class=\"\""}
				href="login.jsp">${users.usName}登录</a>
			<span style="color: white;">|</span> 
			<a ${logreg_flag eq "regist" ? "class=\"index-login1\"" : "class=\"\""}
				href="reg.jsp">注册</a>

		</div>
	</div>
</div>
